export default {
  'post|/login': (option) => {
    return {
      status: 200,
      message: 'success',
      data: {
        "msg": "操作成功",
        "code": 200,
        "token": "eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImU4YTQ5N2I4LTZlMGYtNGUzMS1hMjU3LTQxZGU0ZjIwOWFiMCJ9.B4UiK9S5CmyAPB8_E9bpBpojJssfr-YOJ2QB3oZfwhkMgGq6TW_bHbT7fftN_YS1MOyVzovigeBtQ38Xvsww3w"
      }
    };
  },
  'get|/getRouters': (option) => {
    return {
      "msg": "操作成功", "code": 200, "data": [{
        "name": "System",
        "path": "/system",
        "hidden": false,
        "redirect": "noRedirect",
        "component": "Layout",
        "alwaysShow": true,
        "meta": {"title": "系统管理", "icon": "system", "noCache": false, "link": null},
        "children": [{
          "name": "User",
          "path": "user",
          "hidden": false,
          "component": "system/user/index",
          "meta": {"title": "用户管理", "icon": "user", "noCache": false, "link": null}
        }, {
          "name": "Role",
          "path": "role",
          "hidden": false,
          "component": "system/role/index",
          "meta": {"title": "角色管理", "icon": "peoples", "noCache": false, "link": null}
        }, {
          "name": "Menu",
          "path": "menu",
          "hidden": false,
          "component": "system/menu/index",
          "meta": {"title": "菜单管理", "icon": "tree-table", "noCache": false, "link": null}
        }, {
          "name": "Dept",
          "path": "dept",
          "hidden": false,
          "component": "system/dept/index",
          "meta": {"title": "部门管理", "icon": "tree", "noCache": false, "link": null}
        }, {
          "name": "Dict",
          "path": "dict",
          "hidden": false,
          "component": "system/dict/index",
          "meta": {"title": "字典管理", "icon": "dict", "noCache": false, "link": null}
        }, {
          "name": "Config",
          "path": "config",
          "hidden": false,
          "component": "system/config/index",
          "meta": {"title": "参数设置", "icon": "edit", "noCache": false, "link": null}
        }, {
          "name": "Log",
          "path": "log",
          "hidden": false,
          "redirect": "noRedirect",
          "component": "ParentView",
          "alwaysShow": true,
          "meta": {"title": "日志管理", "icon": "log", "noCache": false, "link": null},
          "children": [{
            "name": "Operlog",
            "path": "operlog",
            "hidden": false,
            "component": "monitor/operlog/index",
            "meta": {"title": "操作日志", "icon": "form", "noCache": false, "link": null}
          }, {
            "name": "Logininfor",
            "path": "logininfor",
            "hidden": false,
            "component": "monitor/logininfor/index",
            "meta": {"title": "登录日志", "icon": "logininfor", "noCache": false, "link": null}
          }]
        }]
      }, {
        "name": "Http://www.wolfcode.cn",
        "path": "http://www.wolfcode.cn",
        "hidden": false,
        "component": "Layout",
        "meta": {"title": "叩丁狼官网", "icon": "guide", "noCache": false, "link": "http://www.wolfcode.cn"}
      }]
    };
  },
  'get|/getInfo': (option) => {
    return {
      "msg": "操作成功",
      "code": 200,
      "permissions": ["*:*:*"],
      "roles": ["admin"],
      "user": {
        "searchValue": null,
        "createBy": "admin",
        "createTime": "2021-09-17 00:58:29",
        "updateBy": null,
        "updateTime": null,
        "remark": "管理员",
        "params": {},
        "userId": 1,
        "deptId": 103,
        "userName": "admin",
        "nickName": "若依",
        "email": "ry@163.com",
        "phonenumber": "15888888888",
        "sex": "1",
        "avatar": "",
        "salt": null,
        "status": "0",
        "delFlag": "0",
        "loginIp": "127.0.0.1",
        "loginDate": "2021-09-17T01:34:21.490+0800",
        "dept": {
          "searchValue": null,
          "createBy": null,
          "createTime": null,
          "updateBy": null,
          "updateTime": null,
          "remark": null,
          "params": {},
          "deptId": 103,
          "parentId": 101,
          "ancestors": null,
          "deptName": "研发部门",
          "orderNum": "1",
          "leader": "若依",
          "phone": null,
          "email": null,
          "status": "0",
          "delFlag": null,
          "parentName": null,
          "children": []
        },
        "roles": [{
          "searchValue": null,
          "createBy": null,
          "createTime": null,
          "updateBy": null,
          "updateTime": null,
          "remark": null,
          "params": {},
          "roleId": 1,
          "roleName": "超级管理员",
          "roleKey": "admin",
          "roleSort": "1",
          "dataScope": "1",
          "menuCheckStrictly": false,
          "deptCheckStrictly": false,
          "status": "0",
          "delFlag": null,
          "flag": false,
          "menuIds": null,
          "deptIds": null,
          "admin": true
        }],
        "roleIds": null,
        "postIds": null,
        "roleId": null,
        "admin": true
      }
    };
  }
}
